package com.dubbo.order.mapper;

import com.dubbo.model.balance.dtos.PageRequestDto;
import com.dubbo.model.order.dtos.MountingsOrderDTO;
import com.dubbo.model.order.dtos.PageDTO;
import com.dubbo.model.order.pojos.MountingsOrder;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface MountingsOrderMapper {


    /**
     * 分页条件查询
     * @param dto：
     * @return
     */
    public List<MountingsOrder> selectByPage(@Param("dto") MountingsOrderDTO dto);

    /**
     * 分页条件查询总条数
     * @param dto
     * @return
     */
   public Integer selectCount(@Param("dto") MountingsOrderDTO dto);


    /**
     * 查总条数
     * @return
     */
    public Integer count();

    /**
     * 页面展示
     * @return
     */
    public List<MountingsOrder> paretsOrderList(@Param("dto") PageRequestDto dto);

//    /**
//     * 根据id查数据
//     * @param id
//     * @return
//     */
//    @Select("select * from mountings_order where id=#{id}")
    public MountingsOrder findById(@Param("id") Long id);

//    @Insert("insert into mountings_order " +
//            "values(#{mountingsOrder.id},#{mountingsOrder.createTime},#{mountingsOrder.companyId}" +
//            ",#{mountingsOrder.companyName},#{mountingsOrder.companyPhone},#{mountingsOrder.clientId})" +
//            ",#{mountingsOrder.clientName},#{mountingsOrder.clientPhone},#{mountingsOrder.enable}" +
//            ",#{mountingsOrder.money},#{mountingsOrder.companyAdministrativeDivision},#{mountingsOrder.clientAdministrativeDivision}" +
//            ",#{mountingsOrder.clientAddress},#{mountingsOrder.companyAddress}")
//    public void insert(MountingsOrder mountingsOrder);
}
